package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="XTGL_JHSBSJSZ"
 *     
*/
public class XtglJhsbsjsz implements Serializable {

    /** identifier field */
    private String szbh;

    /** persistent field */
    private String jhxzDm;

    /** persistent field */
    private String yf;

    /** persistent field */
    private String kzztDm;

    /** nullable persistent field */
    private String dwjcDm;

    /** nullable persistent field */
    private String dwbh;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public XtglJhsbsjsz(String szbh, String jhxzDm, String yf, String kzztDm, String dwjcDm, String dwbh, String zt1, String zt2) {
        this.szbh = szbh;
        this.jhxzDm = jhxzDm;
        this.yf = yf;
        this.kzztDm = kzztDm;
        this.dwjcDm = dwjcDm;
        this.dwbh = dwbh;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public XtglJhsbsjsz() {
    }

    /** minimal constructor */
    public XtglJhsbsjsz(String szbh, String jhxzDm, String yf, String kzztDm) {
        this.szbh = szbh;
        this.jhxzDm = jhxzDm;
        this.yf = yf;
        this.kzztDm = kzztDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="SZBH"
     *         
     */
    public String getSzbh() {
        return this.szbh;
    }

    public void setSzbh(String szbh) {
        this.szbh = szbh;
    }

    /** 
     *            @hibernate.property
     *             column="JHXZ_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getJhxzDm() {
        return this.jhxzDm;
    }

    public void setJhxzDm(String jhxzDm) {
        this.jhxzDm = jhxzDm;
    }

    /** 
     *            @hibernate.property
     *             column="YF"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getYf() {
        return this.yf;
    }

    public void setYf(String yf) {
        this.yf = yf;
    }

    /** 
     *            @hibernate.property
     *             column="KZZT_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getKzztDm() {
        return this.kzztDm;
    }

    public void setKzztDm(String kzztDm) {
        this.kzztDm = kzztDm;
    }

    /** 
     *            @hibernate.property
     *             column="DWJC_DM"
     *             length="2"
     *         
     */
    public String getDwjcDm() {
        return this.dwjcDm;
    }

    public void setDwjcDm(String dwjcDm) {
        this.dwjcDm = dwjcDm;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="50"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("szbh", getSzbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof XtglJhsbsjsz) ) return false;
        XtglJhsbsjsz castOther = (XtglJhsbsjsz) other;
        return new EqualsBuilder()
            .append(this.getSzbh(), castOther.getSzbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getSzbh())
            .toHashCode();
    }

}
